package com.wdz.article.service;


import com.wdz.http.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "article") //这里的name对应调用服务的spring.applicatoin.name
public interface IArticleService {
    @PostMapping("/article/queryList")
    Response queryList(@RequestParam("pageNo") Integer pageNo,@RequestParam("pageSize") Integer pageSize);
}
